package com.letfox.finance.service.impl;

import org.springframework.beans.factory.annotation.Autowired;

import com.letfox.finance.dao.NoviceRlInoutDao;
import com.letfox.finance.model.FINNoviceRlInout;
import com.letfox.finance.service.NoviceRlInoutService;

public class NoviceRlInoutServiceImpl implements NoviceRlInoutService {
	@Autowired
	private NoviceRlInoutDao noviceRlInoutDao;
	
	@Override
	public int deleteById(Long id) {
		
		return noviceRlInoutDao.deleteByPrimaryKey(id);
	}

	@Override
	public int save(FINNoviceRlInout finNoviceRlInout) {
		
		return noviceRlInoutDao.insertSelective(finNoviceRlInout);
	}

	@Override
	public FINNoviceRlInout selectById(Long id) {
		
		return noviceRlInoutDao.selectByPrimaryKey(id);
	}

	@Override
	public int update(FINNoviceRlInout finNoviceRlInout) {
		
		return noviceRlInoutDao.updateByPrimaryKeySelective(finNoviceRlInout);
	}


}
